

<!--//=========================<script réalisé par :BOUFTIH FADWA>=================== -->


<?php
  session_start();
  include("_config.inc.php");
  include('configuration.php');

  connectBD('nomade');
  $tache=$_SESSION['tache'];
  echo $tache;
  $req="select login,designation,objectif,dateDebut,dateFin,ordrePriorite from tacheplannifiee tf,tache t,user u where tf.id_tache=t.idTache and u.idUser=tf.idAdministrateur and designation='$tache'";
  $result=execRequete($req);
  while($line = mysql_fetch_row($result)) {
								$login= $line[0];
								$designation= $line[1];
								$objectif= $line[2];
								$dateDebut=$line[3];
                $dateFin=$line[4];
                $ordrePriorite=$line[5];

				}

    $req="select nom,prenom from nomade n,nomade_tache nt,tache t where t.idTache=nt.idTache and n.idNomade=nt.idNomade and designation='$tache'";
        $result=execRequete($req);
        while($row = mysql_fetch_row($result)) {
        $var=$row[0].'  '.$row[1];
        $tab[] = $var;
         }     

$tpl->assign('login',$login);
$tpl->assign('designation',$designation);
$tpl->assign('objectif',$objectif);
$tpl->assign('dateDebut',$dateDebut);
$tpl->assign('dateFin',$dateFin);
$tpl->assign('ordrePriorite',$ordrePriorite);
$tpl->assign('tab',$tab);
$tpl->display("detailPlanning.html");